home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / system-config-printer / ppdippstr.py < prev    next >
Text File  |  2009-10-19  |  5KB  |  134 lines

  1. #!/usr/bin/env python
  2.  
  3. ## system-config-printer
  4.  
  5. ## Copyright (C) 2008, 2009 Red Hat, Inc.
  6. ## Copyright (C) 2008, 2009 Tim Waugh <twaugh@redhat.com>
  7.  
  8. ## This program is free software; you can redistribute it and/or modify
  9. ## it under the terms of the GNU General Public License as published by
  10. ## the Free Software Foundation; either version 2 of the License, or
  11. ## (at your option) any later version.
  12.  
  13. ## This program is distributed in the hope that it will be useful,
  14. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. ## GNU General Public License for more details.
  17.  
  18. ## You should have received a copy of the GNU General Public License
  19. ## along with this program; if not, write to the Free Software
  20. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. from gettext import gettext as _
  23.  
  24. class TranslationDict:
  25.     STR = {}
  26.  
  27.     def __init__ (self, d):
  28.         self.STR = d
  29.  
  30.     def get (self, str):
  31.         return self.STR.get (str, str)
  32.  
  33. ## IPP strings
  34.  
  35. # Names of printer error policies
  36. printer_error_policy = TranslationDict ({
  37.         "abort-job": _("Abort job"),
  38.         "retry-job": _("Retry job"),
  39.         "stop-printer": _("Stop printer")
  40.         })
  41.     
  42. # Names of printer operation policies
  43. printer_op_policy = TranslationDict ({
  44.         "default": _("Default behavior"),
  45.         "authenticated": _("Authenticated")
  46.         })
  47.  
  48. # Names of banner pages.
  49. job_sheets = TranslationDict ({
  50.         "none": _("None"),
  51.         "classified": _("Classified"),
  52.         "confidential": _("Confidential"),
  53.         "secret": _("Secret"),
  54.         "standard": _("Standard"),
  55.         "topsecret": _("Top secret"),
  56.         "unclassified": _("Unclassified")
  57.         })
  58.  
  59. ## Common PPD strings
  60.  
  61. # Foomatic strings
  62.  
  63. # These are PPD option and group names and values.
  64. ppd = TranslationDict ({
  65.         "General": _("General"),
  66.  
  67.         # HPIJS options
  68.         "Printout Mode": _("Printout mode"),
  69.         "Draft (auto-detect paper type)": _("Draft (auto-detect-paper type)"),
  70.         "Draft Grayscale (auto-detect paper type)":
  71.             _("Draft grayscale (auto-detect-paper type)"),
  72.         "Normal (auto-detect paper type)": _("Normal (auto-detect-paper type)"),
  73.         "Normal Grayscale (auto-detect paper type)":
  74.             _("Normal grayscale (auto-detect-paper type)"),
  75.         "High Quality (auto-detect paper type)":
  76.             _("High quality (auto-detect-paper type)"),
  77.         "High Quality Grayscale (auto-detect paper type)":
  78.             _("High quality grayscale (auto-detect-paper type)"),
  79.         "Photo (on photo paper)": _("Photo (on photo paper)"),
  80.         "Best Quality (color on photo paper)":
  81.             _("Best quality (color on photo paper)"),
  82.         "Normal Quality (color on photo paper)":
  83.             _("Normal quality (color on photo paper)"),
  84.  
  85.         "Media Source": _("Media source"),
  86.         "Printer default": _("Printer default"),
  87.         "Photo Tray": _("Photo tray"),
  88.         "Upper Tray": _("Upper tray"),
  89.         "Lower Tray": _("Lower tray"),
  90.         "CD or DVD Tray": _("CD or DVD tray"),
  91.         "Envelope Feeder": _("Envelope feeder"),
  92.         "Large Capacity Tray": _("Large capacity tray"),
  93.         "Manual Feeder": _("Manual feeder"),
  94.         "Multi Purpose Tray": _("Multi-purpose tray"),
  95.  
  96.         "Page Size": _("Page size"),
  97.         "Custom": _("Custom"),
  98.         "Photo or 4x6 inch index card": _("Photo or 4x6 inch index card"),
  99.         "Photo or 5x7 inch index card": _("Photo or 5x7 inch index card"),
  100.         "Photo with tear-off tab": _("Photo with tear-off tab"),
  101.         "3x5 inch index card": _("3x5 inch index card"),
  102.         "5x8 inch index card": _("5x8 inch index card"),
  103.         "A6 with tear-off tab": _("A6 with tear-off tab"),
  104.         "CD or DVD 80 mm": _("CD or DVD 80mm"),
  105.         "CD or DVD 120 mm": _("CD or DVD 120mm"),
  106.  
  107.         "Double-Sided Printing": _("Double-sided printing"),
  108.         "Long Edge (Standard)": _("Long edge (standard)"),
  109.         "Short Edge (Flip)": _("Short edge (flip)"),
  110.         "Off": _("Off"),
  111.  
  112.         "Resolution, Quality, Ink Type, Media Type":
  113.             _("Resolution, quality, ink type, media type"),
  114.         "Controlled by 'Printout Mode'": _("Controlled by 'Printout mode'"),
  115.         "300 dpi, Color, Black + Color Cartr.":
  116.             _("300 dpi, color, black + color cartridge"),
  117.         "300 dpi, Draft, Color, Black + Color Cartr.":
  118.             _("300 dpi, draft, color, black + color cartridge"),
  119.         "300 dpi, Draft, Grayscale, Black + Color Cartr.":
  120.             _("300 dpi, draft, grayscale, black + color cartridge"),
  121.         "300 dpi, Grayscale, Black + Color Cartr.":
  122.             _("300 dpi, grayscale, black + color cartridge"),
  123.         "600 dpi, Color, Black + Color Cartr.":
  124.             _("600 dpi, color, black + color cartridge"),
  125.         "600 dpi, Grayscale, Black + Color Cartr.":
  126.             _("600 dpi, grayscale, black + color cartridge"),
  127.         "600 dpi, Photo, Black + Color Cartr., Photo Paper":
  128.             _("600 dpi, photo, black + color cartridge, photo paper"),
  129.         "600 dpi, Color, Black + Color Cartr., Photo Paper, Normal":
  130.             _("600 dpi, color, black + color cartridge, photo paper, normal"),
  131.         "1200 dpi, Photo, Black + Color Cartr., Photo Paper":
  132.             _("1200 dpi, photo, black + color cartridge, photo paper"),
  133.         })
  134.